package com.woorigil.social.domain.deal;

import java.util.ArrayList;
import java.util.List;

import com.woorigil.social.domain.Condition;

public class DealCondition extends Condition {
	private Type type = Type.SOCIAL_DEAL;
	private boolean isFree;
	private List<Integer> categoryIds;
	private List<Integer> dealIds;
	private String sid;
	
	public static enum Type {
		SOCIAL_DEAL, FREE_DEAL, SEARCH
	}

	public void addDealIds(int dealId) {
		if (dealIds == null) {
			dealIds = new ArrayList<Integer>();
		}
		dealIds.add(dealId);
	}	
	
	public List<Integer> getDealIds() {
		return dealIds;
	}

	public void setDealIds(List<Integer> dealIds) {
		this.dealIds = dealIds;
	}

	public List<Integer> getCategoryIds() {
		return categoryIds;
	}

	public void setCategoryIds(List<Integer> categoryIds) {
		this.categoryIds = categoryIds;
	}

	public boolean isFree() {
		return isFree;
	}

	public void setFree(boolean isFree) {
		this.isFree = isFree;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}
}